<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CompanyStudyTime extends Model
{
    public $timestamps = false;
    protected $connection = 'xz';
    protected $table = 'company_study_time';
    use HasFactory;

    public function user()
    {
        return $this->hasOne('App\Models\Personal','id','uid')->with('department')->select('id','name','head_img','department_id');
    }

}
